SirRender
Toggle table of contents
v0.1.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
SirRender
SirRender
/
[root]
/
Color
/
luminosity
luminosity
fun
luminosity
(
)
:
Float
Computes the luminosity of a color as
L = ( max(r,g,b) + min(r,g,b) ) / 2